package com.ww.juc.threadpool.custom;

import java.util.concurrent.LinkedBlockingDeque;
import java.util.concurrent.ThreadPoolExecutor;
import java.util.concurrent.TimeUnit;

/**
 * TODO
 *
 * @author wanggw
 * @date 2024-07-12 23:27:39
 */
public class TestDemo1 {
    public static void main(String[] args) {
        Runnable1 runnable1 = new Runnable1();
        ThreadPoolExecutor threadPoolExecutor = new ThreadPoolExecutor(2,
                99999,
                9999,
                TimeUnit.SECONDS,
                new LinkedBlockingDeque<>(),
                new ThreadFactory1());
        threadPoolExecutor.execute(runnable1);
        threadPoolExecutor.shutdown();
    }
}
